package com.zhangfb95.crosschain.plugin.container.java.fabric2.infra.extend.fabricsupport;

import org.hyperledger.fabric.sdk.Enrollment;

import java.security.PrivateKey;

/**
 * @author zhangfubing
 * @since 2023/11/21
 */
public class WrappedEnrollment implements Enrollment {

    private final PrivateKey privateKey;
    private final String cert;

    public WrappedEnrollment(PrivateKey privateKey, String cert) {
        this.privateKey = privateKey;
        this.cert = cert;
    }

    @Override
    public PrivateKey getKey() {
        return this.privateKey;
    }

    @Override
    public String getCert() {
        return this.cert;
    }
}
